Text Run Info
data class TextRunInfo(val from: Int, val to: Int, val text: String, val color: Color, val fontWeight: FontWeight, val fontStyle: FontStyle, val fontSize: Float, val textCase: TextCase, val typeface: Typeface, val resolvedFontFileUri: String, val textDecoration: TextDecorationConfig, val scriptStyle: ScriptStyle = ScriptStyle.NORMAL, val kerning: Float)
Represents a single contiguous text run with uniform formatting.
Each run covers a range of grapheme clusters [from, to) within the text block.
Constructors
Link copied to clipboard
constructor(from: Int, to: Int, text: String, color: Color, fontWeight: FontWeight, fontStyle: FontStyle, fontSize: Float, textCase: TextCase, typeface: Typeface, resolvedFontFileUri: String, textDecoration: TextDecorationConfig, scriptStyle: ScriptStyle = ScriptStyle.NORMAL, kerning: Float)
Properties
Link copied to clipboard
The font size in the unit that BlockApi.getTextRuns takes, points by default, whatever the scene's scene/fontSizeUnit is. BlockApi.getTextFontSizes and the text/fontSize property report the scene's unit.
Link copied to clipboard
The font weight.
Link copied to clipboard
The resolved font file URI.
Link copied to clipboard
The script style of this run.
Link copied to clipboard
The text decoration configuration of this run.